package com.wjw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Data;

/**
*@author WuJianWei
*@date 2022/2/28 20:00
*/
@Data
@TableName(value = "users")
public class Users implements Serializable {
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    @TableField(value = "userName")
    private String username;

    @TableField(value = "`password`")
    private String password;

    @TableField(value = "userPhoneNumber")
    private Long userphonenumber;

    @TableField(value = "email")
    private String email;

    @TableField(value = "gender")
    private String gender;

    /**
     * 加密用
     */
    @TableField(value = "salt")
    private String salt;

    @TableField(value = "login_count")
    private Integer loginCount;

    @TableField(value = "register_time")
    private LocalDate registerTime;

    @TableField(value = "business_user")
    private Boolean businessUser;

    @TableField(value = "nickname")
    private String nickName;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USERNAME = "userName";

    public static final String COL_PASSWORD = "password";

    public static final String COL_USERPHONENUMBER = "userPhoneNumber";

    public static final String COL_EMAIL = "email";

    public static final String COL_GENDER = "gender";

    public static final String COL_SALT = "salt";

    public static final String COL_LOGIN_COUNT = "login_count";

    public static final String COL_REGISTER_TIME = "register_time";
}